package com.medical.doctor.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.medical.common.utils.PageUtils;
import com.medical.doctor.controller.vo.AuditVo;
import com.medical.doctor.controller.vo.DoctorInquiryVo;
import com.medical.doctor.controller.vo.LivesVo;
import com.medical.doctor.entity.DoctorMessageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

import java.util.List;

/**
 * 
 * 
 * @author wen
 * @email 1023076426@qq.com
 * @date 2021-08-13 20:09:06
 */
@Mapper
public interface DoctorMessageDao extends BaseMapper<DoctorMessageEntity> {

    List<AuditVo> audit(@Param("vo") AuditVo params);

    void status(@Param("doctorId") Integer doctorId,
                @Param("status") String status,
                @Param("reason") String reason);

    IPage<AuditVo> audit(Page<AuditVo> auditVoPage,@Param("vo") AuditVo data);

    AuditVo findByDoctorId(Integer doctorId);

    void inquiry(@Param("inquiry") Integer inquiry,@Param("doctorId") Integer doctorId);

    List<DoctorMessageEntity> findAllById(@Param("doctorName") String doctorName, @Param("gradeId")Integer gradeId);

    List<DoctorInquiryVo> inquiryList(DoctorInquiryVo inquiryVo);

    List<LivesVo> livesCount(@Param("doctorName") String doctorName);
}
